package com.baomidou.springboot.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.springboot.entity.User;

import java.util.List;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author QQQ
 * @since 2018-06-19
 */
public interface UserService {

    void save(User user);

    void delete(String id);

    User edit(String id);

    void update(User user);

    User view(String id);

    Page<User> list(Page<User> page, String search);

    void deleteBatch(List<String> ids);

    User findByUsernameAndPassword(String username, String password);

}
